import request from '@/utils/request'

export default {
  login(admin){
    return request({
      url: '/admins/login',
      method: 'post',
      data:{
        username: admin.username,
        password: admin.password,

      }
    });
  },
  getById(productId){
    return request({
      url: '/products/getById/'+ productId,
      method: 'get',
    });
  },
  pushComment(comment){//
    return request({
      url: '/article/pushComment',
      method: 'post',
      data:{
        articleId: comment.articleId,
        parentId: comment.parentId,
        content: comment.content,
        replyCommentId:comment.replyCommentId
    }
    });
  },

} 